﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WarehouseManager.View
{
    public partial class FormHelp : Form
    {
 
        public FormHelp()
        {
            InitializeComponent();
        }

        private void treeView1_AfterSelect(object sender, TreeViewEventArgs e)
        {
            string dangnhap = Application.StartupPath + @"\Help\dangnhap.mht";
            string menu = Application.StartupPath + @"\Help\menu.mht";
            string phieunhaphang = Application.StartupPath + @"\Help\phieunhap.mht";
            string phieuxuathang = Application.StartupPath + @"\Help\phiieuxuathang.mht";
            string suahh = Application.StartupPath + @"\Help\suahanghoa.mht";
            string suanhacc = Application.StartupPath + @"\Help\suanhacc.mht";
            string suanv = Application.StartupPath + @"\Help\suanhanvien.mht";
            string suapn = Application.StartupPath + @"\Help\suaphieunhap.mht";
            string suapx = Application.StartupPath + @"\Help\suaphieuxuat.mht";
            string themhh = Application.StartupPath + @"\Help\themhanghoa.mht";
            string themncc = Application.StartupPath + @"\Help\themnhacc.mht";
            string themnv = Application.StartupPath + @"\Help\themnhanvien.mht";
            string thempn = Application.StartupPath + @"\Help\themphieunhap.mht";
            string thempx = Application.StartupPath + @"\Help\themphieuxuat.mht";
            string thongke = Application.StartupPath + @"\Help\thongkekho.mht";
            string timkiemhh = Application.StartupPath + @"\Help\timkiemhh.mht";
            string timkiemcc = Application.StartupPath + @"\Help\timkiemncc.mht";
            string timkiemnv = Application.StartupPath + @"\Help\timkiemnv.mht";
            string timkiempn = Application.StartupPath + @"\Help\timkiemphieunhap.mht";
            string timkiempx = Application.StartupPath + @"\Help\timkiemphieuxuat.mht";
            string xoathoathh = Application.StartupPath + @"\Help\xoathoathanghoa.mht";
            string xoathoatncc = Application.StartupPath + @"\Help\xoathoatncc.mht";
            string xoathoatnv = Application.StartupPath + @"\Help\xoathoatnhanvien.mht";
            string xoathoatpn = Application.StartupPath + @"\Help\xoathoatphieunhap.mht";
            string xoathoatpx = Application.StartupPath + @"\Help\xoathoatphieuxuat.mht";
            
            switch (e.Node.Name)
            {
                case "dangnhap":
                    webBrowser1.Navigate( dangnhap);
                    break;
                case "menu":
                    webBrowser1.Navigate(menu);
                    break;
                case "phieunhaphang":
                    webBrowser1.Navigate(phieunhaphang);
                    break;
                case "phieuxuathang":
                    webBrowser1.Navigate(phieuxuathang);
                    break;
                case "suahh":
                    webBrowser1.Navigate(suahh);
                    break;
                case "suancc":
                    webBrowser1.Navigate(suanhacc);
                    break;
                case "suanv":
                    webBrowser1.Navigate(suanv);
                    break;
                case "suapn":
                    webBrowser1.Navigate(suapn);
                    break;
                case "suapx":
                    webBrowser1.Navigate(suapx);
                    break;
                case "themhh":
                    webBrowser1.Navigate(themhh);
                    break;
                case "themncc":
                    webBrowser1.Navigate(themncc);
                    break;
                case "themnv":
                    webBrowser1.Navigate(themnv);
                    break;
                case "thempn":
                    webBrowser1.Navigate(thempn);
                    break;
                case "thempx":
                    webBrowser1.Navigate(thempx);
                    break;
                case "thongkekho":
                    webBrowser1.Navigate(thongke);
                    break;
                case "timkiemhh":
                    webBrowser1.Navigate(timkiemhh);
                    break;
                case "timkiemncc":
                    webBrowser1.Navigate(timkiemcc);
                    break;
                case "timkiemnv":
                    webBrowser1.Navigate(timkiemnv);
                    break;
                case "timkiempn":
                    webBrowser1.Navigate(timkiempn);
                    break;
                case "timkiempx":
                    webBrowser1.Navigate(timkiempx);
                    break;
                case "xoathoathh":
                    webBrowser1.Navigate(xoathoathh);
                    break;
                case "xoathoatncc":
                    webBrowser1.Navigate(xoathoatnv);
                    break;
                case "xoathoatnv":
                    webBrowser1.Navigate(xoathoatnv);
                    break;
                case "xoathoatpn":
                    webBrowser1.Navigate(xoathoatpn);
                    break;
                case "xoathoatpx":
                    webBrowser1.Navigate(xoathoatpx);
                    break;

                default:

                    break;
            }
        }

    }
}
